exports.getErr = function (err = "server internal error", errCode = 500) {
  return {
    code: errCode,
    msg: err,
  };
};

exports.getResult = function (result) {
  return {
    code: 200,
    msg: "okk",
    data: result,
  };
};

exports.sendMessage = function (code=0,msg="") {
  return{
    code,
    msg,
  }
}
